package jiguang.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.jiuyin.dianjing.R;
import com.jiuyin.dianjing.app.JGApplication;

import cn.jpush.im.android.api.model.UserInfo;
import jiguang.SelectAddressInterface;
import jiguang.ui.activity.base.BaseActivity;
import jiguang.ui.fragment.HomePageFragment;

/**
 * Created by ${chenyn} on 2017/2/23.
 */

public class PersonalActivity extends BaseActivity implements SelectAddressInterface, View.OnClickListener {
    private UserInfo mMyInfo;
    private HomePageFragment homePageFragment;
    private String mUserName;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_personal);
        initView();
        initListener();
        initData();
    }

    private void initData() {
    }

    private void initListener() {
    }

    private void initView() {
        mUserName = getIntent().getStringExtra(JGApplication.TARGET_ID);
        homePageFragment = HomePageFragment.newInstance(mUserName);
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.layout_fragment, homePageFragment)
                .commit();
        initTitle(true, true, "个人信息", "", false, "");

    }

    @Override
    public void setAreaString(String area) {
    }

    @Override
    public void setTime(String time) {
    }

    @Override
    public void setGender(String gender) {
    }

    @Override
    protected void onActivityResult(final int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
//        switch (requestCode) {
//            case PhotoUtils.INTENT_CROP:
//            case PhotoUtils.INTENT_TAKE:
//            case PhotoUtils.INTENT_SELECT:
//                mChoosePhoto.photoUtils.onActivityResult(PersonalActivity.this, requestCode, resultCode, data);
//                break;
//        }
    }

    @Override
    public void onClick(View v) {

    }
}
